﻿﻿        <!--邀请经纪人奖励 -->
<div class="hide reward-page" id="reward_page">
    <div class="chart-trend">
        <div class="head clearfix">
            <span class="fl">奖励</span>
            <i class="fl report-icon-help" ui-tip url="views/invite-broker/tips-encouragement.html"></i>
            <div class="date">
                <label class="radio"><input type="radio" name="trend-date1" ng-model="query.encouragementChartCycle" value="2"><span>日</span></label>
                <label class="radio ng-hide" ng-show="baseData.allowWeekCycle"><input type="radio" name="trend-date1" ng-model="query.encouragementChartCycle" value="1"><span>周</span></label>
                <label class="radio ng-hide" ng-show="baseData.allowMonthCycle"><input type="radio" name="trend-date1" ng-model="query.encouragementChartCycle" value="0"><span>月</span></label>
            </div>
        </div>

        <div class="report-content">
            <ul class="clearfix js-tab">
                <li ng-class="{ 'on': query.encouragementType == '1' }" ng-click="changeEncouragementTab('1')">
                    <p class="title">邀请奖励</p><span class="num" ng-bind="query.encouragementCount.yqTotalAmount"></span>
                </li>
                <li ng-class="{ 'on': query.encouragementType == '2' }" ng-click="changeEncouragementTab('2')">
                    <p class="title">下线成交奖励</p><span class="num" ng-bind="query.encouragementCount.yqcjTotalAmount"></span>
                </li>
            </ul>

            <div id="graphic_01" class="graphic"></div>
        </div>
    </div>

    <div class="detail-data">
        <div class="head clearfix">
            <span>详细数据</span>
            <div class="date">
                <label class="radio"><input type="radio" name="trend-date2" ng-model="query.encouragementDetailCycle" value="2"><span>日</span></label>
                <label class="radio ng-hide" ng-show="baseData.allowWeekCycle"><input type="radio" name="trend-date2" ng-model="query.encouragementDetailCycle" value="1"><span>周</span></label>
                <label class="radio ng-hide" ng-show="baseData.allowMonthCycle"><input type="radio" name="trend-date2" ng-model="query.encouragementDetailCycle" value="0"><span>月</span></label>
                <a href="javascript:;" class="down" ng-click="query.exportEncouragementDetail()">导出</a>
            </div>
        </div>

        <div class="report-content" id="table_content">
        </div>

        <div ui-pagination page-index="query.encouragementPageIndex" page-size="query.encouragementPageSize" total="query.encouragementTotal" changed="query.queryEncouragementDetail($pageIndex)"></div>
    </div>
</div>

<script type="text/template" id="templ_table">
    <table>
        <tr class="bg-blur"><th class="date">日期</th><th>邀请奖励</th><th>邀请成交奖励</th></tr>
        <# for(var i = 0, len = detail.length; i < len; i++) { #>
            <#var record = detail[i];#>
            <#=(i > 0 && i != len - 1 && i % 2 == 1) ? '<tr class="bg-blur">' : '<tr>'#>
            <tr><td class="date"><#=record.xdate#></td><td><#=this.thousands1(record.yqAmount)#></td><td><#=this.thousands1(record.yqcjAmount)#></td></tr>
            <# } #>
        <tr class="total"><td class="b">总计</td><td><#=this.thousands1(yqTotalAmount)#></td><td><#=this.thousands1(yqcjTotalAmount)#></td></tr>
    </table>
</script>
<!-- 邀请经纪人奖励 -->
